/**
 * Anderground project - Subway maps processor application.
 * Copyright (C) 2008-2009 Eldar Abusalimov, Ilya Shurigyn
 * 
 * This file is part of Anderground.
 * 
 * Anderground is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Anderground is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Anderground.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.anderground.core.drawer;

import org.anderground.core.drawer.Calculator.Mode;
import org.anderground.core.graphics.Canvas;
import org.anderground.core.graphics.Point;
import org.anderground.core.graphics.Rect;
import org.anderground.core.model.ModelData;
import org.anderground.core.model.Station;
import org.anderground.core.model.Transition;

/**
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 */
public abstract interface MetroDrawer {

	public abstract boolean prepare(ModelData modelData, Mode mode);

	public abstract void applyCalculator(Calculator calculator);

	public abstract void draw(Canvas canvas);

	public abstract Station[] searchStations(Point point);

	public abstract void copyCoordBounds(Rect rect);

	public abstract void selectStations(Canvas canvas, Station... stations);

	public abstract void selectTransitions(Canvas canvas,
			Transition... transitions);

	public abstract boolean isReady();

	public abstract String getName();

	public abstract Property[] getProperties();

	public abstract void setProperties(Property[] properties);

	public abstract ModelData getModelData();

	public abstract Mode getMode();

}